<template>
  <div class="app">
    <hr class="two" />
    <h1> pubsub-js 第三方库 订阅与发布</h1>
    <h4>实际上常用 Vue 事件总线代替</h4>
    <h1>{{ msg }}</h1>
    <School />
    <Student />
  </div>
</template>

<script>
import Student from './Student'
import School from './School'

export default {
  name: 'Pubsub',
  components: {School, Student},
  data() {
    return {
      msg: '你好啊！',
    }
  }
}
</script>

<style scoped>
.app {
  border: 5px dotted red;
  padding: 5px;
  margin-bottom: 20px;
}
</style>
